// 引入mongoose
const mongoose = require("mongoose");

// 连接数据库
mongoose
  .connect(
    "mongodb+srv://2048992672:gB4ndZgh8NVNPZoH@cluster0.ukhs7.mongodb.net/three-one"
  )
  .then(() => {
    console.log("数据库连接成功11");
  })
  .catch((err) => {
    console.log("数据库连接失败111", err);
  });
let clearList = new mongoose.Schema({
  name: String,
  con: String,
  price: Number,
  rate: Number,
  ping: Number,
  img: String,
  Collect: Boolean,
  type: String,
});
let clearListModel = mongoose.model("clear", clearList, "clear");
module.exports = {
  clearListModel,
};
